import server from '../utils/fetch'

const api = {
    user: {
        info: () => server.get('/api/user/info'),
        msgCode: params => server.get('/api/message_code',params),
        login: params => server.post('/api/login', params)
    },
    home:{
        banner:() => server.get('/api/home/banner'),
        menu:() => server.get('/api/home/menu'),
        nav:() => server.get('/api/home/navs')
    },
    product:{
        product:(params = {}) => server.get('/api/product/list',params),
        classfy: () => server.get('/api/classfy'),
    }
}

export default api;